<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>支付结果</title>
    <style>
        .container {
            text-align: center;
            margin-top: 100px;
        }
        .success {
            color: #67C23A;
            font-size: 24px;
            margin-bottom: 20px;
        }
        .order-info {
            color: #606266;
            margin-bottom: 30px;
        }
        .back-btn {
            display: inline-block;
            padding: 10px 20px;
            background-color: #409EFF;
            color: white;
            text-decoration: none;
            border-radius: 4px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="success">支付成功！</div>
        <div class="order-info">
            订单号：<span id="outTradeNo"></span><br>
            交易号：<span id="tradeNo"></span>
        </div>
        <a href="/" class="back-btn">返回首页</a>
    </div>

    <script>
        // 获取URL参数
        function getQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return decodeURIComponent(r[2]); return null;
        }

        // 显示订单信息
        window.onload = function() {
            document.getElementById('outTradeNo').textContent = getQueryString('out_trade_no');
            document.getElementById('tradeNo').textContent = getQueryString('trade_no');
        }
    </script>
</body>
</html> 